import java.util.Random;
public class Test01{
    public static void main(String[] args){
        Random r = new Random();
        int a = r.nextInt(11); //20-10+1
        a += 10;//生成10 - 20之间的随机数
        System.out.println(a);
    }
}